package cn.kgc.ssm.controller;

import cn.kgc.ssm.service.LogInfoService;
import cn.kgc.ssm.utils.ResponseResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 课工场
 * @date 2024/3/9
 * @description
 */
@RestController
@RequestMapping("logs")
public class LogInfoController {

    @Resource
    private LogInfoService logInfoService;

    //  分页数据
    @RequestMapping("page")
    public ResponseResult logsPage(Integer page, Integer limit, String model, String description) {

      return   logInfoService.logsPage(page,limit,description,model);
    }


    // 日志删除操作
    @RequestMapping("delete")
    public ResponseResult deleteLogs(Integer[] ids) {

        return   logInfoService.deleteLogs(ids);
    }

}
